package com.zsk.shop.model.params;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

/**
 * @author Ys
 * @date 2021年10月26日 14:09
 */
@Data
public class DeliveryAddressParams {

    @ApiModelProperty("列表主键")
    private String id;

    @NotNull(message = "请填写收货人")
    @Size(max = 11, message = "收货人输入限制11字符")
    @ApiModelProperty("收货人")
    private String name;

    @NotNull(message = "请填写收货人联系方式")
    @ApiModelProperty("联系方式")
    private String phone;

//    @NotNull(message = "请选择省市区")
//    @ApiModelProperty("省市区")
//    private String region;

    @NotNull(message = "请选择省")
    @ApiModelProperty("省")
    private String province;

    @NotNull(message = "请选择市")
    @ApiModelProperty("市")
    private String city;

    @NotNull(message = "请选择区")
    @ApiModelProperty("区")
    private String area;

    @NotNull(message = "请填写详细地址")
    @Size(max = 100, message = "详细地址限制字数为100字以内")
    @ApiModelProperty("详细地址")
    private String detailedAddress;

    @ApiModelProperty("是否默认")
    private Boolean isChecked = false;

}
